<?php

class ScrapController extends Am_Controller
{
    function indexAction()
    {
			$sw = $this->getParam("sw");
			$arr_value = array();
			$url = $this->getParam("url");
			if(isset($url))
				$arr_value['url'] = $url;
			
			$char = $this->getParam("char");
			if(isset($char))
				$arr_value['char'] = $char;
			$keyword = $this->getParam("keyword");
			if(isset($keyword))
				$arr_value['keyword'] = $keyword;
			$num = $this->getParam("num");
			if(isset($num))
				$arr_value['num'] = $num;
			$text = $this->getParam("text");
			if(isset($text))
				$arr_value['text'] = $text;	
				
			$apiNeo = Am_Di::getInstance()->apineo;
			$result = $apiNeo->scrapData($sw, $arr_value);
			echo $result;
			
    }
}